/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.entity.hr.recruitment;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 招聘管理实体类
 *
 * @author gangan
 * @since 2019-11-15
 */
@Data
@TableName("hr_recruitment_management")
@EqualsAndHashCode(callSuper = true)
public class RecruitmentManagement extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 单据编码
	*/
		private String code;
	/**
	* 用工管理单据编码
	*/
		private String upstreamCode;

	/**
	 * 用工管理单据id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long upstreamCodeId;
	/**
	* 计划属性
	*/
		private String planAttributeId;
	/**
	* 招聘单位名称
	*/
		private String companyNameId;
	/**
	* 招聘属性
	*/
		private String recruitmentAttributeId;
	/**
	* 招聘方式
	*/
		private String recruitmentMethodsId;
	/**
	* 招聘时间
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
	@TableField(value = "recruitment_time",updateStrategy = FieldStrategy.IGNORED)
		private Date recruitmentTime;
	/**
	* 招聘需求人数
	*/
		private Integer recruitmentNeedPeople;
	/**
	* 现场收到多少简历
	*/
		private Integer resumeNumber;
	/**
	* 进入面试多少人
	*/
		private Integer intervieweesNumber;
	/**
	* 单位联系人
	*/
		private String unitContactPerson;
	/**
	* 联系方式
	*/
		private String contactInformation;
	/**
	* 邮箱
	*/
		private String mailbox;
	/**
	* 实际招聘人数
	*/
		private Integer actualRecruitment;
	/**
	* 版本号
	*/
		private String version;
	/**
	* 备注
	*/
		private String remark;
	/**
	* 审核人
	*/
		private String approvedUser;
	/**
	* 审核时间
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date approvedTime;
	/**
	* 审核意见
	*/
		private String approvedOption;
	/**
	* 变更时间
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date changeDateTime;
	/**
	* 流程实例id
	*/
		private String formType;
	/**
	* 乐观锁字段
	*/
		private Integer tsVersion;
	/**
	* 所属部门id(blade_dept)
	*/
		private String deptId;
	/**
	* 备用文本字段1
	*/
		private String def1;
	/**
	* 备用文本字段2
	*/
		private String def2;
	/**
	* 备用文本字段3
	*/
		private String def3;
	/**
	* 备用文本字段4
	*/
		private String def4;
	/**
	* 备用文本字段5
	*/
		private String def5;
	/**
	* 备用文本字段6
	*/
		private String def6;
	/**
	* 备用文本字段7
	*/
		private String def7;
	/**
	* 备用文本字段8
	*/
		private String def8;
	/**
	* 备用数字字段1
	*/
		private BigDecimal def9;
	/**
	* 备用数字字段2
	*/
		private BigDecimal def10;
	/**
	* 备用数字字段3
	*/
		private BigDecimal def11;
	/**
	* 备用数字字段4
	*/
		private BigDecimal def12;
	/**
	* 备用数字字段5
	*/
		private BigDecimal def13;
	/**
	* 备用日期字段1
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date def14;
	/**
	* 备用日期字段2
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date def15;
	/**
	* 备用日期字段3
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date def16;
	/**
	* 备用日期字段4
	*/
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date def17;
	/**
	* 备用枚举字段1
	*/
		private Long def18;
	/**
	* 备用枚举字段2
	*/
		private Long def19;
	/**
	* 备用枚举字段3
	*/
		private Long def20;


}
